package grape.crm.rest.department.mapper;

import grape.crm.service.department.po.Department;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.crm.rest.department.form.DepartmentCreateForm;
import grape.crm.rest.department.form.DepartmentUpdateForm;
import grape.crm.rest.department.form.DepartmentListPageForm;
import grape.crm.rest.department.vo.DepartmentVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 部门表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-14
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface DepartmentWebMapper extends WebMapper<DepartmentVo, Department> {

    Department formToPo(DepartmentCreateForm f);
    Department formToPo(DepartmentUpdateForm f);
    Department formToPo(DepartmentListPageForm f);
}
